package yxy.game.pm2.bean.module.rank.active;

import java.util.ArrayList;

public enum RankRushEnum {

	冲榜_金币兑换(301),//金币兑换
	冲榜_副本关卡(302),//副本关卡
	冲榜_剿匪次数(303),//剿匪次数
	冲榜_快速作战(304),//快速作战
	;

	private int type;
	
	private RankRushEnum(int type) {
		this.type = type;
	}
	
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	
	public static RankRushEnum getRankRushEnum(int type) {
		switch (type) {
		case 301 : return 冲榜_金币兑换;
		case 302 : return 冲榜_副本关卡;
		case 303 : return 冲榜_剿匪次数;
		case 304 : return 冲榜_快速作战;
		default:
			break;
		}
		return null;
	}
	
	private static ArrayList<Integer> sequence = new ArrayList<Integer>();
	
	public static ArrayList<Integer> getSequence(){
		if(sequence.size() == 0) {
//			在活动期间4个冲榜类型按照点金冲榜 、副本冲榜 、剿匪冲榜 、扫荡冲榜 
			sequence.add(冲榜_金币兑换.getType());
			sequence.add(冲榜_副本关卡.getType());
			sequence.add(冲榜_剿匪次数.getType());
			sequence.add(冲榜_快速作战.getType());
		}
		
		return sequence;
	}
	
}
